import {getCookie} from './getCookie.js'
let {token}=getCookie()
// 重新登陆
if((token ==undefined)||(token=='')){
    alert('请登录')
    location.href='./index.html' 
}
document.querySelector('.exit').addEventListener('click',()=>{
    document.cookie=`token=`
    location.href='./index.html' 
})

